<div class="ui-g-12 p-20 ui-g-nopad systemStaff">
    <p-panel headerClass="bg-none" [showScroll]="true" [marginHeight]="80">
      <p-header>
        <div class="text-right p-6-0 h-48">
          <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">{{title}}</span>
          <button pButton type="button" (click)="save()" class="btn btn-success"  label="提交"></button>
          <!-- <button pButton type="button" (click)="save('saveAdd')" *ngIf="!isEdit" label="继续新建" class="btn btn-primary m-l-8"></button> -->
          <button pButton type="button" (deClick)="returnBtn()" label="取消" class="btn btn-secondary m-l-8"></button>
        </div>
      </p-header>

      <form #form="ngForm" novalidate class="form-horizontal" role="form">
        
        
        <div class="table-row">
          <div class="table-cell text-right p-l-25 p-required">名称：</div>
          <div class="table-cell " style="min-width: 410px;">
            <input  type="text" name="name" class="p-input" placeholder="请输入..." size="30" maxlength="50" pInputText [(ngModel)]="objToPost.name">
          </div>
        </div>

        <div class="table-row">
          <div class="table-cell text-right p-l-25 p-required">网站：</div>
          <div class="table-cell ">
            <p-dropdown optionLabel="name" [justValue]="true" dataKey="code" required name="siteCode" styleClass="width-full" [options]="siteArr"
              [(ngModel)]="objToPost.siteCode" [style]="{width: '100%'}" ></p-dropdown>
          </div>
        </div>

        <div class="table-row">
          <div class="table-cell text-right p-l-25 p-required">上级目录：</div>
          <div class="table-cell ">
            <!-- <input type="text" name="catalogCode" placeholder="请输入..." class="p-input" size="30" maxlength="10" pInputText [(ngModel)]="objToPost.catalogCode"> -->
            <!-- <p-treeselect [value]="treeNode" selectionMode="single" dataKey="code" [(selection)]="selectedFiles2"  name="parentCode" ngDefaultControl></p-treeselect> -->
            <p-treeselect [value]="tree" [filter]="false" placeholder="{{objToPost.parentName || '请选择'}}" [dataKey]="'code'" selectionMode="single" [(selection)]="selectedFiles"></p-treeselect>
          </div>
        </div>
  
        <div class="table-row">
          <div class="table-cell text-right p-l-25 p-required">模板：</div>
          <div class="table-cell ">
            <p-dropdown optionLabel="name" [justValue]="true" dataKey="code" required name="templateCode" styleClass="width-full" [options]="templateArr"
              [(ngModel)]="objToPost.templateCode" [style]="{width: '100%'}" ></p-dropdown>
          </div>
        </div>
		
		    <div class="table-row">
          <div class="table-cell text-right p-l-25 p-required">别名：</div>
          <div class="table-cell ">
            <input type="text" name="alias" placeholder="请输入..." class="p-input" size="30" maxlength="10" pInputText [(ngModel)]="objToPost.alias">
          </div>
        </div>  

        <div class="table-row">
          <div class="table-cell text-right p-l-25 p-required">级别：</div>
          <div class="table-cell ">
            <!-- <input type="text" name="sortNum" placeholder="请输入..." class="p-input" size="30" maxlength="10" pInputText [(ngModel)]="objToPost.sortNum"> -->
            <p-spinner name="level" size="30" maxlength="6" styleClass="p-spinner" [(ngModel)]="objToPost.level" placeholder="请输入..."
              [step]="1" [min]="1" [max]="3" ></p-spinner>
          </div>
        </div> 

        <div class="table-row">
          <div class="table-cell text-right p-l-25">关键词：</div>
          <div class="table-cell ">
            <input type="text" name="keywords" placeholder="请输入..." class="p-input" size="30" maxlength="10" pInputText [(ngModel)]="objToPost.keywords">
          </div>
        </div> 

        <div class="table-row">
          <div class="table-cell text-right p-l-25">描述：</div>
          <div class="table-cell ">
          <!-- <div class="table-cell icon-text" data-text="天">  单位-->
            <input type="text" name="description" placeholder="请输入..." class="p-input" size="30" maxlength="10" pInputText [(ngModel)]="objToPost.description">
          </div>
        </div> 

        <div class="table-row">
          <div class="table-cell text-right p-l-25">序号：</div>
          <div class="table-cell ">
            <!-- <input type="text" name="sortNum" placeholder="请输入..." class="p-input" size="30" maxlength="10" pInputText [(ngModel)]="objToPost.sortNum"> -->
            <p-spinner name="sort" size="30" maxlength="6" styleClass="p-spinner" [(ngModel)]="objToPost.sortNum" placeholder="请输入..."
              [step]="1" [min]="1" [max]="20" ></p-spinner>
          </div>
        </div> 

        <!-- 
        <div class="table-row">
          <div class="table-cell text-right p-l-25">：</div>
          <div class="table-cell ">
            <input type="text" name="" placeholder="请输入..." class="p-input" size="30" maxlength="10" pInputText [(ngModel)]="objToPost.">
          </div>
        </div> 
        -->

      </form>
      
    </p-panel>
</div>